<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/mobileHead.jsp" %>
<style type="text/css">
input {border:1px solid #dddddd;font-family:Dotum;font-size:12px;}
</style>
	<div class="content">
		<div class="title"><b><font color="#0487e4">로그</font>인</b></div>
		<table border="0" cellspacing="0" cellpadding="0" width="100%" style="color:#505050;">
			<tr>
				<td height="20"></td>
			</tr>
			<tr>
				<td align="center">
				<form id="form" action="j_spring_security_check" method="post">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td align="right"><b>아이디</b></td>
						<td width="10"></td>
						<td><input name="j_username" id="j_username" style="width:162px;height:20px;"/></td>
						<td width="10"></td>
						<td rowspan="3"><a href="#" onclick="javascript:doLogin();" style="width:50px;height:50px;display:block;background:#0487e4;text-align:center;color:#fff;line-height:50px;"><b>로그인</b></a></td>
					</tr>
					<tr>
						<td height="5"></td>
					</tr>
					<tr>
						<td align="right"><b>비밀번호</b></td>
						<td width="10"></td>
						<td><input type="password" name="j_password" onkeypress="return runScript(event)" style="width:162px;height:20px;"/></td>
						<td width="10"></td>
					</tr>
				</table>
				</form>
				</td>
			</tr>
		</table>		
	</div>

<script type="text/javascript">
function init(){
	$('#j_username').focus();	
}
function runScript(e) {
    if (e.keyCode == 13) {
    	doLogin();
        return false;
    }
}
function doLogin() {
	
	$('#form').submit();
	return;
}

init();
</script>
<%@ include file="/WEB-INF/views/include/mobileBottom.jsp" %>